package com.duowei.diandan.viewmodel;

import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;

import com.duowei.diandan.db.AppDatabase;
import com.duowei.diandan.db.entry.Jycssz;

import java.util.List;

public class DeskChoiceViewModel extends ViewModel {
    private final LiveData<List<Jycssz>> mLiveData;

    public DeskChoiceViewModel() {
        mLiveData = AppDatabase.getDatabase().jycsszDao().findAllSync();
    }

    public LiveData<List<Jycssz>> getLiveData() {
        return mLiveData;
    }
}
